package com.easychat.entity.dto;

import com.easychat.entity.enums.UserContactStatusEnum;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author: yudaxian
 * @Description: TODO
 * @DateTime: 2024/8/12 21:06
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class UserContactSearchResultDTO {
    private String contactId;

    private String contactType;

    private String nickName;

    private Integer status;

    private String statusName;

    private Integer sex;

    private String areaName;

    public String getStatusName() {
        UserContactStatusEnum statusEnum = UserContactStatusEnum.getByStatus(status);
        return statusEnum == null ? null : statusEnum.getDesc();
    }
}
